function run_sim {
./pyrunner_motionfast python/coin/strategy/mm/fastfeature/sim/lm_sim.py \
--use_feed_cache \
--use_predicted_latency=1 \
--use_slurm \
$@
#--force_rerun \
}

SIM_ROOT=${SIM_ROOT:-sim_test}

#./script/clean.sh
rm $SIM_ROOT/sbatch*.sh
rm slurm*

TRADING_DATE=20191208
num_slurm_cpu=90

mkdir -p sim_test

set -x

run_sim \
--trading_date $TRADING_DATE \
--num_slurm_cpu $num_slurm_cpu \
--sim_root $SIM_ROOT \
--feed_machine=feed-best.ap-northeast-1.aws $@

